package com.y.proxy;

public class XiMenQing {

	public static void main(String[] args) {
		// 王婆 做代理
		WangPo wangPo = new WangPo();
		wangPo.makeEyesWithMan();
		wangPo.happyWithMan();

		System.out.println("默认篡改了历史");

		JiaShi jiaShi = new JiaShi();
		wangPo = new WangPo(jiaShi); // 让王婆作为贾氏的代理人

		wangPo.makeEyesWithMan();
		wangPo.happyWithMan();
	}
}
